package com.zmn.oms.common.constant;

import com.zmn.common.constant.GlobalConsts;
import com.zmn.common.utils.number.NumberUtil;

/**
 * @author sunlife
 * @date:2020/10/10 3:13 下午
 * description:
 */
public class OrderPartConsts {
    // 配件支付方式 1支付宝、2微信、3、渠道、4质保金
    public static final int ALI_PAY = 1;
    public static final int WECHAT_PAY = 2;
    public static final int CHANNEL_PAY= 3;
    public static final int DEPOSIT_PAY= 4;

    /**
     * 保留配件24小时后自动算账
     */
    public static final int RETAIL_PART_24HOUR_AOTUACCOUNT = 1;

    /**
     * 保留配件剩余6小时后提醒
     */
    public static final int RETAIL_PART_6HOUR_REMIND = 2;

    /**
     * 保留配件剩余12小时后提醒
     */
    public static final int RETAIL_PART_12HOUR_REMIND = 3;

    // 图片审核状态
    public static String getDeteName(Integer status) {
        if (NumberUtil.isNullOrZero(status)) {
            return "未审核";
        }
        switch (status) {
            case GlobalConsts.NO:
                return "无效";
            case GlobalConsts.YES:
                return "有效";
            default:
                return "未审核";
        }
    }

}
